a = 21
b = 5
# 取模运算，返回a除以b的余数
print(f'{a}除以{b}的余数是',a % b)
print(f'{a} - {b} = ',a + b)
print(f'{a} - {b} = ',a - b)
print(f'{a} * {b} = ',a * b)
print(f'{a} / {b} = ',a / b)
# 整除，向下取整
print(f'{a} // {b}= ',a//b)
# 幂运算
print(f'{a}的 {b} 次方是', a** b)
print(a > b)
a += b
print(a)
a *= b
print(a)
a = True
b = False
# 或运算 
print(a or b)
# 与运算
print(a and b)
# 非运算
print(not a )
print(not b )
# 左移运算符
print(5<<2)
# 右移运算符
print(5>>2)
a=8
b=[1,2,3,4,5,6,7,8]
# 成员运算符
print(a in b)
print(9 in b)

c = 1
d = 1
# 比较运算符
print(c is d)
# 比较的是数值
print(c == d)